<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <my-cpm></my-cpm>
        <my-cpn-two></my-cpn-two>
    </div>
    <script src="../js/vue.js"></script>
    <script type="text/x-template" id="myCpn">
        <div>
            我是一个内容
        </div>
    </script>
    <template id="myCpnTwo">
        <div>我是template标签的写法</div>
    </template>
    <script>
        const app = new Vue({
            el:'#app',
            data(){
                return {

                }
            },
            components:{
                'my-cpm':{
                    template:'#myCpn'
                },
                'my-cpn-two':{
                    template:'#myCpnTwo'
                }
            }
        })
    </script>
</body>
</html>